Q3String_Read
You can use theQ3String_Read
function to read a string from a file object.
TQ3Status Q3String_Read ( char *data, unsigned long *length, TQ3FileObject file);
data
- On entry, a pointer to a buffer whose length is of size
kQ3StringMaximumLength
, orNULL
. On exit, a pointer to the string read from the specified file object. If this parameter is set toNULL
on entry, no string is read, but its length is returned in thelength
parameter.length
- On exit, the number of characters actually copied into the specified buffer. If
data
is set toNULL
on entry, this parameter returns the length of the string.file
- A file object.
DESCRIPTION
TheQ3String_Read
function returns, in thedata
parameter, a pointer to the next string in the file object specified by thefile
parameter. The string data is 7-bit ASCII, with standard escape sequences for any special characters in the string. TheQ3String_Read
function also returns, in thelength
parameter, the length of the string.